<template>
    <div class="log_Reg">
        <div @click="logByPhone">手机号登录</div>
        <div @click="register">注册</div>
    </div>
</template>

<script setup>
  //引入composition api
  import { useRouter } from 'vue-router'

  // //实现路由跳转
  const router = useRouter();
  //手机号登录跳转到login界面
  const logByPhone = () => {
    router.push('/login')
  }
  //点击注册跳转到注册页面
  const register = () => {
    router.push('/register')
  }

</script>

<style scoped>
  .log_Reg{
    height: 85px;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-top: 48px;
    /* position: absolute;
    top: 377px; */
  }
  .log_Reg>div{
    width: 300px;
    height: 35px;
    font-family: PingFang TC;
    color: rgb(102, 102, 102);
    border: 1.5px solid #666;
    border-radius: 20px;
    text-align: center;
    line-height: 35px;
  }
</style>